package com.example.boot;

import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.context.properties.bind.Binder;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableConfigurationProperties
@ComponentScan
@Log4j2
public class BootApplication {

    public static void main(String[] args) {
        //
        ApplicationContext context = SpringApplication.run(BootApplication.class, args);
        log.info("context");
        Binder binder = Binder.get(context.getEnvironment());
        log.info(binder);
    }
}
